package com.wehotel.common.config;


import com.ctrip.framework.apollo.spring.annotation.ApolloConfig;
import com.ctrip.framework.apollo.spring.annotation.EnableApolloConfig;
import com.wehotel.client.SysID;
import org.springframework.beans.BeansException;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;
import org.springframework.context.annotation.Configuration;

@Configuration
public class Config implements ApplicationContextAware, InitializingBean {

    static ApplicationContext context;

    @Value("${jj.appid}")
    private Integer appid;

    @Value("${jj.token}")
    private String token;

    @Value("${jj.name}")
    private String name;


    @Override
    public void afterPropertiesSet() throws Exception {
        System.out.println(this.toString());
    }
}
